-- GENERATED SPELL FOR [Dustwind Pillager] --


function spell0_3116(pUnit, Event) --@Rend Flesh,n/a--
pUnit:FullCastSpellOnTarget(3147,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3116', 12000, 1)
end

function Sorts_3116(pUnit, Event)
local choix_sorts_3116 = math.random(0, 0)
if choix_sorts_3116 == 0 then
pUnit:RegisterEvent('spell0_3116', 1, 1)
end
end

function mob3116_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3116', math.random(1500, 3000), 1)
end

function mob3116_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3116_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3116_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3116, 1, 'mob3116_Action')
RegisterUnitEvent(3116, 2, 'mob3116_Leave')
RegisterUnitEvent(3116, 3, 'mob3116_Kill')
RegisterUnitEvent(3116, 4, 'mob3116_Die')
